<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>后盾人</title>
  </head>
  <body></body>
  <script>
    //xml JSON
    let data = {
      name: "后盾人",
      data: {
        title: "php"
      }
    };

    let lessons = [{ name: "js" }];
    let json = JSON.stringify(lessons, null, 2);
    console.log(json);
    // let json = JSON.stringify(data, null, 2);
    // console.log(json);

    // let phpJSon = `{"name":"\u540e\u76fe\u4eba","url":"hdcms.com"}`;
    // let obj = JSON.parse(phpJSon);
    // console.log(obj.url);
  </script>
</html>
